<script>
	$(function(){
		EBCMS.{$namespace}.huanjing = {$huanjing|default=0};
		if (!EBCMS.{$namespace}.huanjing) {
			alert('当前环境不满足系统安装需要！');
		};
		EBCMS.{$namespace}.gotostep2 = function gotostep2(){
			if (EBCMS.{$namespace}.huanjing) {
				EBCMS.{$namespace}.step('2');
			}else{
				alert('当前环境不满足系统安装需要！');
			};
		}
	});
</script>
<div class="license">
	<equal name="huanjing" value="0">
		<div class="alert alert-danger">当前环境不支持安装本系统，请重新配置环境！</div>
	</equal>
	<table class="table table-bordered table-responsive table-striped installtable">
		<caption>系统检测</caption>
		<tbody>
			<tr>
				<th>项目</th>
				<th>所需配置</th>
				<th>推荐配置</th>
				<th>当前配置</th>
				<th>检测结果</th>
			</tr>
			<foreach name='check_env' item='vo'>
			<tr>
					<th>{$vo.0}</th>
					<td>{$vo.1}</td>
					<td>{$vo.2}</td>
					<td>{$vo.3}</td>
					<td><eq name="vo.4" value="1"><span class="iconfont icon-yes text-primary"></span><else/><span class="iconfont icon-error text-danger"></span></eq></td>
			</tr>
			</foreach>
		</tbody>
	</table>
	<table class="table table-bordered table-responsive table-striped installtable">
		<caption>文件/目录权限检测</caption>
		<tbody>
			<tr>
				<th>项目</th>
				<th>所需配置</th>
				<th>推荐配置</th>
				<th>当前配置</th>
				<th>检测结果</th>
			</tr>
			<foreach name='check_dirfile' item='vo'>
			<tr>
					<th>{$vo.3}</th>
					<td>可写</td>
					<td>可写</td>
					<td>{$vo.1}</td>
					<td><eq name="vo.2" value="1"><span class="iconfont icon-yes text-primary"></span><else/><span class="iconfont icon-error text-danger"></span></eq></td>
			</tr>
			</foreach>
		</tbody>
	</table>
	<table class="table table-bordered table-responsive table-striped installtable">
		<caption>函数检测</caption>
		<tbody>
			<tr>
				<th>项目</th>
				<th>所需配置</th>
				<th>推荐配置</th>
				<th>当前配置</th>
				<th>检测结果</th>
			</tr>
			<foreach name='check_func' item='vo'>
			<tr>
					<th>{$vo.0}</th>
					<td>支持</td>
					<td>支持</td>
					<td>{$vo.1}</td>
					<td><eq name="vo.2" value="1"><span class="iconfont icon-yes text-primary"></span><else/><span class="iconfont icon-error text-danger"></span></eq></td>
			</tr>
			</foreach>
		</tbody>
	</table>
</div>
<div class="toolbar">
	<div class="pull-right">
		<button type="button" class="btn btn-primary" onclick="EBCMS.{$namespace}.step(0);">上一步</button>
		<button type="button" class="btn btn-primary" onclick="EBCMS.{$namespace}.gotostep2();">下一步</button>
	</div>
</div>